package org.vacoor.xqq.core.mod;

import org.vacoor.xqq.core.bean.AuthcState;
import org.vacoor.xqq.core.bean.ChatToken;

public interface Authenticator {

    /**
     * 校验是否需要验证码
     * @return
     */
    boolean safetyCheck();

    /**
     * 获取验证码
     * @return
     */
    byte[] getCaptcha();

    /**
     * 设置验证码
     * @param verify
     */
    void setVerify(String verify);

    /**
     * 认证
     * @return
     */
    AuthcState doAuthc();

    /**
     * 获取Token
     * @return
     */
    ChatToken getChatToken();
}
